package com.ruoyi.manager.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.manager.mapper.ArvinBookmarkMapper;
import com.ruoyi.manager.domain.ArvinBookmark;
import com.ruoyi.manager.service.IArvinBookmarkService;

/**
 * 网站收藏Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-11
 */
@Service
public class ArvinBookmarkServiceImpl implements IArvinBookmarkService 
{
    @Autowired
    private ArvinBookmarkMapper arvinBookmarkMapper;

    /**
     * 查询网站收藏
     * 
     * @param id 网站收藏ID
     * @return 网站收藏
     */
    @Override
    public ArvinBookmark selectArvinBookmarkById(Long id)
    {
        return arvinBookmarkMapper.selectArvinBookmarkById(id);
    }

    /**
     * 查询网站收藏列表
     * 
     * @param arvinBookmark 网站收藏
     * @return 网站收藏
     */
    @Override
    public List<ArvinBookmark> selectArvinBookmarkList(ArvinBookmark arvinBookmark)
    {
        return arvinBookmarkMapper.selectArvinBookmarkList(arvinBookmark);
    }

    /**
     * 新增网站收藏
     * 
     * @param arvinBookmark 网站收藏
     * @return 结果
     */
    @Override
    public int insertArvinBookmark(ArvinBookmark arvinBookmark)
    {
        return arvinBookmarkMapper.insertArvinBookmark(arvinBookmark);
    }

    /**
     * 修改网站收藏
     * 
     * @param arvinBookmark 网站收藏
     * @return 结果
     */
    @Override
    public int updateArvinBookmark(ArvinBookmark arvinBookmark)
    {
        return arvinBookmarkMapper.updateArvinBookmark(arvinBookmark);
    }

    /**
     * 批量删除网站收藏
     * 
     * @param ids 需要删除的网站收藏ID
     * @return 结果
     */
    @Override
    public int deleteArvinBookmarkByIds(Long[] ids)
    {
        return arvinBookmarkMapper.deleteArvinBookmarkByIds(ids);
    }

    /**
     * 删除网站收藏信息
     * 
     * @param id 网站收藏ID
     * @return 结果
     */
    @Override
    public int deleteArvinBookmarkById(Long id)
    {
        return arvinBookmarkMapper.deleteArvinBookmarkById(id);
    }
} 